from Alibb.form import InsertAttributeForm
from wtforms.validators import DataRequired, Length, AnyOf
from wtforms import StringField


class DeleteProductForm(InsertAttributeForm):
    webSite = StringField("站点类型", validators=[
        DataRequired(message="请输入站点类型"),
        Length(min=4, max=7),
        AnyOf(values=["1688", "alibaba"], message="请输入正确的站点类型")
    ])
